﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ODP.Enum;

namespace ODP.Model
{
    public class APIInfo
    {
        /// <summary>
        /// API接口方法名称
        /// </summary>
        public string APIFunctionName { get; set; }

        /// <summary>
        /// API接口请求路径
        /// </summary>
        public string APIURLPath { get; set; }

        /// <summary>
        /// API接口请求方式
        /// </summary>
        public HttpMethod APIRequestMethod { get; set; }

        /// <summary>
        /// 构造方法
        /// </summary>
        /// <param name="functionName"></param>
        /// <param name="urlPath"></param>
        /// <param name="requestMethod"></param>
        public APIInfo(string functionName,string urlPath,HttpMethod requestMethod)
        {
            APIFunctionName = functionName;
            APIURLPath = urlPath;
            APIRequestMethod = requestMethod;
        }
    }
}
